Skip to content

Add Telegram Group & Fix Warnings#68

Merged
xtclovver merged 1 commit into
xtclovver:mainfrom
ArThirtyFour:da
May 19, 2026
Merged

Add Telegram Group & Fix Warnings#68
xtclovver merged 1 commit into
xtclovver:mainfrom
ArThirtyFour:da

Conversation

@ArThirtyFour
Copy link
Copy Markdown
Contributor

Я уже писал ранее в Matrix краткенько зачем нужна , но напишу здесь.


"https://t.me/ссылка-нада вот ссылка на тг если кто-то ленивец"

Как я посчитал, для тех нормисов , которые пока не познали мощь матрикса , и пока сидят в тг.

Ну и еще починил там варниги со стороны комплятора. И теперь сборка не выдает преупреждения.

@xtclovver xtclovver changed the title Add Telegram & Fix Warings Add Telegram Group & Fix Warnings May 19, 2026
@xtclovver xtclovver merged commit 2325f1d into xtclovver:main May 19, 2026
2 checks passed
return SignalOutcome(detected = detected, needsReview = needsReview)
}

@Suppress("DEPRECATION")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

RouteSnapshot(
destination = route.destination?.toString()
?: if (route.isDefaultRoute) "0.0.0.0/0" else "unknown",
destination = route.destination.toString(),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Потенциальная потеря fallback-логики "0.0.0.0/0"/"unknown"

@@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

так нельзя делать, на весь файл suppress не вешают


private object Fallbacks {
fun geoIp(context: Context, error: Throwable): CategoryResult = CategoryResult(
fun geoIp(@Suppress("UNUSED_PARAMETER") context: Context, error: Throwable): CategoryResult = CategoryResult(
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

если unused то убирать надо, а не глушить warning

findings = listOf(Finding(error.message ?: error::class.java.simpleName, isError = true)),
)
fun indirect(context: Context, error: Throwable): CategoryResult = CategoryResult(
fun indirect(@Suppress("UNUSED_PARAMETER") context: Context, error: Throwable): CategoryResult = CategoryResult(
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тоже самое

findings = listOf(Finding(error.message ?: error::class.java.simpleName, isError = true)),
)
fun location(context: Context, error: Throwable): CategoryResult = CategoryResult(
fun location(@Suppress("UNUSED_PARAMETER") context: Context, error: Throwable): CategoryResult = CategoryResult(
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тоже самое

findings = listOf(Finding(error.message ?: error::class.java.simpleName, isError = true)),
)
fun native(context: Context, error: Throwable): CategoryResult = CategoryResult(
fun native(@Suppress("UNUSED_PARAMETER") context: Context, error: Throwable): CategoryResult = CategoryResult(
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тоже самое

)
}

@Suppress("DEPRECATION")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

убрать/передать функцию вместо глушения ошибки

private fun ensureCardVisible(
card: MaterialCardView,
animate: Boolean = true,
@Suppress("UNUSED_PARAMETER") animate: Boolean = true,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

он более не используется, убирать надо просто

@xtclovver
Copy link
Copy Markdown
Owner

@ArThirtyFour Я мердж сделал, комментарии тебе на будущее просто. Warnings исправлять надо, а не suppress делать. Эти suppress потом могут мешать в нахождении проблем, особенно suppress на весь файл (в первый и последних раз принимаю с таким suppress). Я сам доработаю что пометил

@xtclovver xtclovver self-assigned this May 19, 2026
@xtclovver xtclovver added the enhancement New feature or request label May 19, 2026
Repository owner locked as resolved and limited conversation to collaborators May 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants